package org.example.service;

//import io.swagger.annotations.ApiOperation;
//import org.example.domain.bean.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

//定义feign服务绑定接口,通过FeignClient注解绑定对外提供服务的服务名称
@Component
@FeignClient(name = "SPRINGCLOUD-PROVIDER-USER",url = "localhost:8002")
//@FeignClient(url = "localhost:8001")
public interface UserFeignService {

//    @ApiOperation(value = "退出登录")
    @PostMapping("/logout")
    public void logout();

//    @GetMapping(value = "/captcha", produces = "image/jpeg")
//    public void captcha(HttpServletRequest request, HttpServletResponse response);

}
